package com.wz.project;

import com.wz.config.Normal;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.methods.response.Web3ClientVersion;
import org.web3j.protocol.http.HttpService;

import java.io.IOException;

/**
 * @program: project
 * @description: 快速开始
 * @author: Wangzheng
 * @create: 2020-12-16 11:01
 **/

public class Start {
	
	public static void main(String[] args) {
		Web3j web3j = Web3j.build(new HttpService(Normal.SERVER));
		Web3ClientVersion web3ClientVersion = null;
		try {
			web3ClientVersion = web3j.web3ClientVersion().send();
			String clientVersion = web3ClientVersion.getWeb3ClientVersion();
			System.out.println("clientVersion " + clientVersion);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
 
}